How to keep only unique objects in JSON array | PHP